package com.un.ebs.customer.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author liubo
 * @since 2019-12-04
 */
@Data
@Component
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_customer_defunct")
public class CustomerDefunct extends Model<CustomerDefunct> {

    private static final long serialVersionUID=1L;

        @TableId(value = "id", type = IdType.UUID)
        private String id;

    private String customerId;

    private String defunctId;

    @TableField(fill=FieldFill.INSERT)
    private Date createTime;

    @TableField(fill=FieldFill.INSERT)
    private String createAt;

    @Override
    protected Serializable pkVal() {
            return this.id;
    }

}